<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>应用下载</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }

        .download-card {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin-top: 20px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .app-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            display: block;
            border-radius: 16px;
            background-color: #4CAF50;
        }

        .app-name {
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 10px;
        }

        .app-version {
            text-align: center;
            color: #666;
            margin-bottom: 20px;
        }

        .download-btn {
            display: block;
            width: 100%;
            padding: 15px;
            background-color: #4CAF50;
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: bold;
            margin: 20px 0;
            transition: background-color 0.3s;
        }

        .download-btn:hover {
            background-color: #45a049;
        }

        .browser-tip {
            background-color: #fff3cd;
            border: 1px solid #ffeeba;
            color: #856404;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            display: flex;
            align-items: center;
        }

        .browser-icon {
            font-size: 24px;
            margin-right: 10px;
        }

        .steps {
            margin-top: 20px;
            padding: 0 20px;
            display: none;
        }

        .step {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
        }

        .step-number {
            background-color: #4CAF50;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            flex-shrink: 0;
        }

        .step-text {
            flex: 1;
        }

        .wechat-tip {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
            display: none;
        }

        .wechat-tip .arrow {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M7 14l5-5 5 5z"/></svg>') no-repeat;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        .wechat-tip .text {
            position: absolute;
            top: 45px;
            right: 10px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 14px;
            white-space: nowrap;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="download-card">
            <img src="" alt="应用图标" class="app-icon">
            <h1 class="app-name">汾西运销</h1>
            <p class="app-version">版本 1.0.19</p>
            
            <a href="https://gitee.com/xlfz/doc/releases/download/driver/drivernew.apk" class="download-btn">立即下载</a>

            <div class="browser-tip">
                <span class="browser-icon">🌐</span>
                <div>
                    <strong>提示：</strong> 请在浏览器中打开此页面以下载应用
                </div>
            </div>

            <div class="steps" id="steps">
                <div class="step">
                    <div class="step-number">1</div>
                    <div class="step-text">点击右上角"..."按钮</div>
                </div>
                <div class="step">
                    <div class="step-number">2</div>
                    <div class="step-text">选择"在浏览器中打开"</div>
                </div>
                <div class="step">
                    <div class="step-number">3</div>
                    <div class="step-text">在浏览器中点击"立即下载"按钮</div>
                </div>
            </div>
              <div style="padding: 20px;text-align: center;" id="qr">
                <img src="" style="width: 200px; height: 200px;"/>
            </div>
        </div>
    </div>

    <div class="wechat-tip" id="wechatTip">
        <div class="arrow"></div>
        <div class="text">点击右上角在浏览器中打开</div>
    </div>

    <script>
        function isWeixinBrowser() {
            var ua = navigator.userAgent.toLowerCase();
            return ua.match(/MicroMessenger/i) == "micromessenger";
        }

        window.onload = function() {
            if (isWeixinBrowser()) {
                document.getElementById('wechatTip').style.display = 'block';
                document.getElementById('steps').style.display = 'block';
            }
        }
    </script>
</body>
</html> 